//
//  MixSprite.h
//  SnowCone
//
//  Created by luotianqiang on 17/4/9.
//
//

#ifndef MixSprite_hpp
#define MixSprite_hpp

#include "cocos2d.h"
using namespace std;
using namespace cocos2d;
class MixSprite: public Node {
    CC_SYNTHESIZE(float, _changeDistance , ChangeDistance);
public:
    static MixSprite* create(const Size& size);
    void useTarget(Sprite* target,float height);
    void useTarget(string path,float height);
protected:
    MixSprite();
    bool init(const Size& size);
protected:
    Size _canvasSize;
    float currentHeight;
    float downDistancef,upDistancef;
    Sprite* currentSprite;
};

#endif /* MixSprite_hpp */
